<% if @account && @site.can_be_edited_by_user?(@account.login) %>
    <%= link_to (image_tag 'edit.gif'), :controller => 'page', :site_directory => @site.directory, :page_title => @page.title, :action => 'page_edit' %>
<% end %>